<%@page import="cn.com.entity.Consumer"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Set"%>
<%@page import="cn.com.entity.PexaminationPackage"%>
<%@page import="cn.com.entity.Pexamination"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<style type="text/css">
body{
color: #03C;
}

</style>
</head>
<body>

<form action="addpexaminationformaction" method="post">
<%
if(session.getAttribute("consumerlogin")!=null){
	if(session.getAttribute("pexaminationPackagebyid")!=null){
PexaminationPackage pexaminationPackagebyid=(PexaminationPackage)session.getAttribute("pexaminationPackagebyid");
	Consumer c=(Consumer)session.getAttribute("consumerlogin");
Set<Pexamination>  pexSet=pexaminationPackagebyid.getPexaminationset();
%>
<h2 align="center">您选择的套餐为：<%=pexaminationPackagebyid.getPexaminationpackagename() %></h2>
<center>${pexaminationformmsg}</center>
<table align="center" width="60%" border="1">
<tr>
<th>类别</th>
<th>地址</th>
</tr>
<%
Iterator<Pexamination> it=pexSet.iterator();
while(it.hasNext()){
	Pexamination pex=it.next();

%>
<tr>
<td><%=pex.getPexaminationname() %>
	<input type="hidden" value="<%=pexaminationPackagebyid.getPexaminationpackageid() %>" name="pexaminationform.pexaminationpackageid"/>
	<input type="hidden" value="<%=c.getConsumerid() %>" name="pexaminationform.consumerid"/>
</td>
<td><%=pex.getPexaminationposition() %></td>
</tr>
<%} }
}%>

<tr>

<td align="center" colspan="2"><input type="submit"  value="确认体检" style="font-size:20px; color:#FFF; background-image: url(images/lanseanniu.jpg);"/></td>
</tr>

</table>
</form>
</body>
</html>